def Sort(a):
    for i in range(1,len(a)):
        on=a[i]
        j=i-1
        while j>=0 and on<a[j]:
            a[j+1]=a[j]
            j-=1
        a[j+1]=on

a=[6,2,3,5,1,7,11,4,8,12,9,10]
Sort(a)
print(a)